//
//  HomePageViewController.m
//  weibo
//
//  Created by dllo on 16/6/13.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import "HomePageViewController.h"
#import "Qr codeViewController.h"
#import "ScanViewController.h"
#import "ChatViewController.h"
@interface HomePageViewController ()

@end

@implementation HomePageViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.navigationController.navigationBar.barTintColor = DSRGBA(82, 82, 85, 1);
    // 二维码临时跳转按钮
    self.view.backgroundColor = [UIColor whiteColor];
    UIButton *button = [UIButton buttonWithType:UIButtonTypeCustom];
    button.backgroundColor = [UIColor yellowColor];
    button.frame = CGRectMake(20, 100, 50, 50);
    [button addTarget:self action:@selector(buttonAction) forControlEvents:UIControlEventTouchUpInside];
    [self.view addSubview:button];
    // 扫一扫临时跳转按钮
    UIButton *button1 = [UIButton buttonWithType:UIButtonTypeCustom];
    button1.backgroundColor = [UIColor redColor];
    button1.frame = CGRectMake(120, 100, 50, 50);
    [button1 addTarget:self action:@selector(button1Action) forControlEvents:UIControlEventTouchUpInside];
    [self.view addSubview:button1];
    
    
    // Do any additional setup after loading the view.
}

-(void)buttonAction{
    Qr_codeViewController *qrVC = [Qr_codeViewController new];
    [self.navigationController pushViewController:qrVC animated:YES];
    
}
-(void)button1Action{
    ChatViewController *ScanVC = [ChatViewController new];
    [self.navigationController pushViewController:ScanVC animated:YES];
    
}


@end
